package dem1;

import java.util.ArrayList;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 33013
 * Date: 2023-03-30
 * Time: 8:10
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList<Fu> arrayList = new MyArrayList<>();
        ArrayList<Fu> list = new ArrayList<>();
       // list.add(new Ye());
        list.add(new Fu());
        list.add(new Zi());
//        arrayList.add(new Ye);
//        arrayList.add(new Fu());
//        arrayList.add(new Zi());
    }
}

class Ye{

}
class Fu extends Ye{

}
class Zi extends Fu{

}
